var express = require('express');

var upload = require('../utils/uploadPictureConfig')  //导入上传配置
var { registerPhyControl, cs, loginPhyControl } = require('../controller/physicianControler')  //导入用户控制层

const Token = require('../utils/jwtutil')   //token

var router = express.Router();  //创建路由对象

/**
 * 测试
 *  GET users listing. 
 * */
router.get('/cs', cs);

// 管理员注册
router.post('/PhyRegister', upload.single('headerImg'), registerPhyControl)

// 管理员登录
router.post('/PhyLogin', loginPhyControl)

module.exports = router;
